package com.java.service.impl;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.java.dao.UserDao;
import com.java.entity.User;
import com.java.service.UserService;

@Service("userService")
public class UserServiceImpl implements UserService {

	@Resource
	private UserDao userDao;

	public User find() {
		return userDao.find();
	}

	@Override
	public User login(User user) {
		
		return userDao.login(user);
	}

	@Override
	public User getByUsername(String userName) {
		
		return userDao.getByUsername(userName);
	}
	
}
